<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
	<input type="hidden" id="pwdLevelJs" name="pwdLevelJs" value="<ww:property value='pwdLevel'/>"/>
	<input type="hidden" id="realpwd" name="realpwd" value="<ww:property value='#session.sUser.password'/>"/>
	<input type="hidden" id="realreviewpwd" name="realreviewpwd" value="<ww:property value='#session.sUser.reviewPwd'/>"/>
	
	<div class="table_list_tab">
		<ww:link name="loginPwdDivTab" funcode="acl_user/updPasswordSetting" caption="修改登录密码"  onclick="showLoginPwdDivTab();"  href="javascript:;"></ww:link>
		<ww:link name="reviewPwdDivTab" funcode="acl_user/updReviewPwdSetting" caption="修改签章密码"  onclick="showReviewPwdDivTab();"  href="javascript:;"></ww:link>
		<ww:link name="personalDataTab" funcode="acl_user/updPersonalSetting" caption="修改个人资料"  onclick="showPersonalDataTab();"  href="javascript:;"></ww:link>
	</div>
				
	
	<form class="form-horizontal form-validatePe" id="updPersonalSetting_form" method="post" action="updPersonalSetting.action"  onsubmit="return $action.submit(this);">
		<div class="control-group">
			<label class="control-label" for="input01">真实姓名</label>
			<div class="controls">
				<tr><td><ww:property value='item.realName'/></td></tr>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="input01">手机</label>
			<div class="controls">
				<input type="text" placeholder="请输入手机号" class="input-large mobile" name="mobile" maxlength="50"
						id="mobile" value="<ww:property value='item.mobile'/>" onKeyUp="onMobileMouseMove();"/><font id="mobileFont" color="red"></font>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="input01">电话</label>
			<div class="controls">
				<input type="text" placeholder="请输入电话号码" class="input-large phone" name="phone" maxlength="50"
						id="phone" value="<ww:property value='item.phone'/>" onKeyUp="onPhoneMouseMove();"/><font id="phoneFont" color="red"></font>
			</div>
		</div>
			<div class="control-group">
			<label class="control-label" for="input01">邮箱</label>
			<div class="controls">
				<input type="text" placeholder="请输入邮箱" class="input-large email" name="email" maxlength="50"
						id="email" value="<ww:property value='item.email'/>" onKeyUp="onEmailMouseMove();"/><font id="emailFont" color="red"></font>
			</div>
		</div>
		<div class="set-btn" data-spy="affix" data-offset-top="200">
				<%--<button id="saveButton" class="btn save" type="submit">保存</button>
				--%>
			<a class="save btn" href="javascript:;" onclick="$(this).submit();" style="border: 0;background-color: #317caf;height: 21px;width: 26px">保存</a>
		</div>
	</form>

	  

<script>
$(document).ready(function() { 
	$("#loginPwdDivTab").attr("class","");
    $("#reviewPwdDivTab").attr("class","");
    $("#personalDataTab").attr("class","active");
}); 

function submitPe(){
	if($("#mobileFont").html() == "" && $("#phoneFont").html() == "" && $("#emailFont").html() == ""){
		$("#updPersonalSetting_form").submit();
	}else{
		loginStatusPe = 2;
		if($("#mobileFont").html() != ""){
			$("#mobile").focus();
		}else if($("#phoneFont").html() != ""){
			$("#phone").focus();
		}else if($("#emailFont").html() != ""){
			$("#email").focus();
		}
	}
}
function showLoginPwdDivTab(){
		$('#tab-01').cssTab('reload',
			{title:'设置',
			 id:$.cssTab.focus().attr("id"),
			 url:'getUserSettings.action',
	         active:true
			}
		);
}
function showReviewPwdDivTab(){
		$('#tab-01').cssTab('reload',
			{title:'设置',
			 id:$.cssTab.focus().attr("id"),
			 url:'getUserSettings.action?type=2',
	         active:true
			}
		);
}
function showPersonalDataTab(){
		$('#tab-01').cssTab('reload',
			{title:'设置',
			 id:$.cssTab.focus().attr("id"),
			 url:'getUserSettings.action?type=3',
	         active:true
			}
		);
}


</script>
